home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{694C2364-E711-11D2-8B3A-000000000000}#14.0#0"; "PCMPass.ocx"
- Begin VB.Form Form1
- Caption = "Sample Pass"
- ClientHeight = 1395
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4470
- LinkTopic = "Form1"
- ScaleHeight = 1395
- ScaleWidth = 4470
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton Command2
- Caption = "Exit"
- Height = 495
- Left = 3000
- TabIndex = 5
- Top = 600
- Width = 1215
- End
- Begin PCMPass.Pass Pass1
- Left = 0
- Top = 720
- _ExtentX = 873
- _ExtentY = 1085
- End
- Begin VB.CommandButton Command1
- Caption = "Log On"
- Default = -1 'True
- Height = 495
- Left = 3000
- TabIndex = 2
- Top = 120
- Width = 1215
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 1080
- TabIndex = 1
- Top = 480
- Width = 1815
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 1080
- TabIndex = 0
- Top = 120
- Width = 1815
- End
- Begin VB.Label Label3
- Caption = "Password:"
- Height = 255
- Left = 240
- TabIndex = 4
- Top = 480
- Width = 1215
- End
- Begin VB.Label Label2
- Caption = "User Name:"
- Height = 255
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 1215
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- With Pass1
- .UserName = Text1.Text
- .PassWord = Text2.Text
- .LogOn
- If .ValidLogIn = True Then
- Unload Form1
- Form2.Show
- Form2.SetFocus
- Else
- MsgBox "Invalid UserName or Password!", vbCritical
- End If
- End With
- End Sub
- Private Sub Command2_Click()
- End Sub
-